@font-face {
    font-family: 'SYNE';
    src: url('fonts/SyneMono-Regular.ttf');
}

@font-face {
    font-family: 'SPACEGROTESK';
    src: url('fonts/SpaceGrotesk-Regular.ttf');
    font-weight: normal;
}
@font-face {
    font-family: 'SPACEGROTESK';
    src: url('fonts/SpaceGrotesk-Light.ttf');
    font-weight: light;
}
@font-face {
    font-family: 'SPACEGROTESK';
    src: url('fonts/SpaceGrotesk-Medium.ttf');
    font-weight: 100;
}
@font-face {
    font-family: 'SPACEGROTESK';
    src: url('fonts/SpaceGrotesk-SemiBold.ttf');
    font-weight: 300;
}
@font-face {
    font-family: 'SPACEGROTESK';
    src: url('fonts/SpaceGrotesk-Bold.ttf');
    font-weight: bold;
}

/*header*/

.header {
    position: fixed;
    display: block;
    height: 5vw;
    width: 100%;
    background: linear-gradient(#111111, transparent);
    top: 0;
    z-index: 2;
}

select {
    width: fit-content;
    padding: 3px;
    font-family: 'SPACEGROTESK';
    font-weight: 100;
    color: #c2c2c2;
    background-color: #111111;
    border-color: #929292;
}

footer {
    position: fixed;
    bottom: 3%;
    left: 3vw;
    font-family: 'SPACEGROTESK';
    font-weight: light;
    font-size: x-small;
    color: #929292;
}

.content {
    position: absolute;
    display: flex;
    width: 65%;
    height: 100%;
    left: 50%;
    transform: translateX(-50%);
    justify-content: space-between;
    align-items: center;
}

#name {
    font-family: 'SYNE';
    font-size: 1vw;
    color: #f3f3f3;
}

.links {
    margin: auto;
    opacity: 1;
    transition: 0.3s ease-in-out;
}
.links:hover {
    opacity: 0.5;
    transform: scale(90%);
}

#homepage {
    width: 1.9vw;
}
#projects {
    width: 2.2vw;
}
#about {
    width: 2vw;
}
#contact {
    width: 2.2vw;
}
#linktree {
    width: 2vw;
}

/*background*/

body {
    position: relative;
    width: 100vw;
    height: 100vh;
    margin: 0;
    background-color: #111111;
    overflow-x: hidden;
}

.page {
    position: relative;
    padding-bottom: 10%;
    width: 70%;
    top: 18%;
    left: 50%;
    transform: translateX(-50%);
}

.text {
    position: relative;
    display: flex;
    margin-bottom: 10vh;
    width: 100%;
    align-items: center;
    justify-content: left;
}

#titleapp {
    margin: 2vw;
    margin-bottom: 0;
    font-family: 'SYNE';
    font-size: calc(35px + 0.4vw);
    color: #5a7d81;
    transition: 0.5s ease-in-out;
}
#date {
    margin: 2vw;
    margin-top: 0;
    font-family: 'SPACEGROTESK';
    font-weight: 100;
    font-style: italic;
    font-size: calc(10px + 0.4vw);
    color: #5a7d81;
    opacity: 0;
    transition: 0.5s ease-in-out;
}

#textapp {
    margin: 2vw;
    width: 40%;
    font-family: 'SPACEGROTESK';
    font-weight: light;
    font-style: italic;
    font-size: calc(10px + 0.4vw);
    color: #f3f3f3;
    opacity: 0;
    transition: 0.5s ease-in-out;
}
.text:hover {
    #titleapp {
        color: #3c5356;
        font-size: calc(33px + 0.4vw);
    }
    #date {
        opacity: 1;
    }
    #textapp {
        opacity: 1;
    }
}

/*project*/

.container {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: auto;
    gap: 3%;
    width: 80%;
    left: 50%;
    transform: translateX(-50%);
    justify-content: space-between;
}
#vid1 {
    width: 100%;
    grid-column: 3;
    grid-row: 1 / 3;
}
#img1 {
    width: 100%;
    grid-column: 1 / 3;
    grid-row: 1;
}
#img4 {
    width: 100%;
    grid-column: 1;
    grid-row: 2 / 4;
}
#img3 {
    width: 100%;
    grid-column: 2;
    grid-row: 2 / 4;
}
#img2 {
    width: 100%;
    grid-column: 3;
    grid-row: 3;
}


/*responsive*/

@media only screen and (max-width: 600px) {
    .text {
        display: block;
        margin-bottom: 7vh;
        text-align: center;
        width: 90%;
        left: 50%;
        transform: translateX(-50%);
    }
    #titleapp {
        margin: 2vw;
        font-size: calc(30px + 0.4vw);
        color: #5a7d81;
    }
    #date {
        color: #3c5356;
        font-size: calc(12px + 0.4vw);
        opacity: 1;
    }
    #textapp {
        margin: 7vw 0;
        width: 100%;
        font-size: calc(12px + 0.4vw);
        opacity: 1;
    }
    .text:hover {
        #titleapp {
            color: #5a7d81;
            font-size: calc(30px + 0.4vw);
        }
        #date {
            opacity: 1;
        }
        #textapp {
            opacity: 1;
        }
    }
}

@media only screen and (max-width: 600px) {
    .page {
        padding-bottom: 20%;
        top: 10%;
        width: 90%;
    }
    .container {
        width: 90%;
    }
    #vid1 {
        width: 100%;
        grid-column: 1 / 4;
        grid-row: 1;
    }
    #img1 {
        width: 100%;
        grid-column: 1 / 4;
        grid-row: 2;
    }
    #img4 {
        width: 100%;
        grid-column: 1;
        grid-row: 3;
        margin-bottom: 15vh;
    }
    #img3 {
        width: 100%;
        grid-column: 2;
        grid-row: 3;
    }
    #img2 {
        width: 100%;
        grid-column: 3;
        grid-row: 3;
    }
}


@media only screen and (max-width: 600px) {
    .header {
        height: 12vw;
        width: 100%;
        top: 0;
        z-index: 2;
    }
    .content {
        width: 90%;
    }    
    #name {
        font-size: 3vw;
        color: #f3f3f3;
    }
    .links {
        margin: auto;
        opacity: 1;
        transition: 0.3s ease-in-out;
    }
    .links:hover {
        opacity: 0.5;
        transform: scale(90%);
    }
    #homepage {
        width: 5vw;
    }
    #projects {
        width: 5vw;
    }
    #about {
        width: 5vw;
    }
    #contact {
        width: 5vw;
    }
    #linktree {
        width: 5vw;
    }
    }